package com.csap.framework.apidoc.example.model;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author yangchengfu
 * @description
 * @dataTime 2021年-03月-18日 19:54:00
 **/
@ApiModel(value = "测试ExampleListModel")
@Data
public class ExampleListModel {
    @ApiModelProperty(value = "名称", forceReq = true, required = true)
    private String name;
    @ApiModelProperty(value = "年龄", forceReq = true, required = true)
    @NotNull(message = "请输入年龄")
    private Integer age;
    @ApiModelProperty(value = "exampleListModel", forceReq = true, required = true)
    @NotEmpty(message = "请输入exampleListModel2")
    private List<ExampleListModel2> exampleListModelList2;
}
